<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse" >
        <ul class="nav metismenu" id="side-menu" >
            <li class="nav-header">
                <div class="dropdown profile-element"> 
                  <span><img alt="image"  src="${basePath}/image/login1.png" /></span>
                </div>
                <div class="logo-element">
                    TDS
                </div>
            </li>
            <#if menuList??><#list menuList as menu>
				<#if menu.url?? && menu.url?trim != "">
					<li <#if menu.id == currentMenu.id>class="special_link"</#if>>
						<a href="${basePath}${menu.url!}"><i class="fa fa-th-large"></i><span class="nav-label">${menu.localeName!}</span></a>
					</li>
			 	<#else>
					<li>
		                <a href="#"><i class="fa ${menu.icon!}"></i> <span class="nav-label">${menu.localeName!}</span> <span class="fa arrow"></span></a>
		                <ul class="nav nav-second-level">
		                	<#if menu.children??><#list menu.children as child>
		                    	<li <#if child.id == currentMenu.id>class="special_link active"</#if>><a href="${basePath}${child.url!}" target="${child.target!}">${child.localeName!}</a></li>
		                    </#list></#if>
		                </ul>
		            </li>
				</#if>
			</#list></#if>
        </ul>
    </div>
</nav>
<script>
	$(".special_link").parent("ul").not("#side-menu").removeClass().addClass("nav nav-second-level collapse in");
	$(".special_link").parent("ul").not("#side-menu").parent().removeClass().addClass("active");
</script>